<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import = "com.logistics.entity.InOutStoreRoom" %>
<%@ page import = "com.logistics.database.Simpledatabase" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'PurchaseSJsp.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<%@ page import = "com.logistics.entity.InOutStoreRoom" %>
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="scripts/jquery/jquery-1.7.1.js"></script>
	<link href="style/authority/basic_layout.css" rel="stylesheet" type="text/css">
	<link href="style/authority/common_style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="scripts/authority/commonAll.js"></script>
	<script type="text/javascript" src="scripts/fancybox/jquery.fancybox-1.3.4.js"></script>
	<script type="text/javascript" src="scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
	<link rel="stylesheet" type="text/css" href="style/authority/jquery.fancybox-1.3.4.css" media="screen"></link>
	<script type="text/javascript" src="scripts/artDialog/artDialog.js?skin=default"></script>
	<script type="text/javascript" src="scripts/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="scripts/Myscripts/alpha_add.js"></script>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	

	
  </head>
  
  <body>
  	<center>
  		<form action="servlet/ProductServlet" method="get">
		  <input type="hidden" name="start_time" value="<%=request.getParameter("start_time") %>" >
		  <input type="hidden" name="end_time" value="<%=request.getParameter("end_time") %>" >
		  <input type="hidden" name="putin" value="<%=request.getParameter("putin") %>" >
		  <input type="hidden" name="act" value="gouhuoruku" >
  
		  <table width="100%" class="table">
		  	<tr><th align="center"><c:out value="${'购货单号 '}"></c:out></th>
		  	<th align="center"><c:out value="${'商品代号'}"></c:out></th>
		  	<th align="center"><c:out value="${'商品名称'}"></c:out></th>
		  	<th align="center"><c:out value="${'当前单价'}"></c:out></th>
		  	<th align="center"><c:out value="${'入库数量'}"></c:out></th>
		  	<th align="center"><c:out value="${'总价 '}"></c:out></th>
		  	<th align="center"><c:out value="${'计量单位' }"></c:out></th>
		  	<th align="center"><c:out value="${'日期'}"></c:out></th>
		  	<th align="center"><c:out value="${'修改入库信息'}"></c:out></th>
		  	<c:forEach items="${prolist }" var="mt">
		  		<tr><td>${mt.inout_id }</td>
		  		<td>${mt.product_id }</td>
			  	<td>${mt.product_name==null?"&nbsp":mt.product_name }</td>
			  	<td>${mt.price==null?"&nbsp":mt.price }</td>
			  	<td>${mt.product_number==null?"&nbsp":mt.product_number }</td>
			  	<td>${mt.total_price==null?"&nbsp":mt.total_price }</td>
			  	<td>${mt.unit==null?"&nbsp":mt.unit }</td>
			  	<td>${mt.inoutdate==null?"&nbsp":mt.inoutdate }</td>
			  	<td><input type="button" value="输入入库数量" onclick="window.location.href='../Logistics/inoutstore/PurchaseS.jsp?start_time=<%=request.getParameter("start_time") %>&end_time=<%=request.getParameter("end_time") %>&putin=<%=request.getParameter("putin") %>&inout_id=${mt.inout_id}&product_id=${mt.product_id }&price=${mt.price }'" class="ui_input_btn02"></td>
			    </tr>
		  	</c:forEach>
		  	</tr>
		  </table>
		  <div id="box_bottom">
		 	<input type="submit" name="sure" value="确定" class="ui_input_btn02"> &nbsp&nbsp&nbsp&nbsp&nbsp
		 </div>
  </center>
  </form>
  </body>
</html>